-- GENERATED SPELL FOR [Steelforged Defender] --


function spell0_33572(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(62845,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33572', 10321, 1)
end

function spell1_33572(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(50370,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33572', 15281, 1)
end

function Sorts_33572(pUnit, Event)
local choix_sorts_33572 = math.random(0, 1)
if choix_sorts_33572 == 0 then
pUnit:RegisterEvent('spell0_33572', 1, 1)
end
if choix_sorts_33572 == 1 then
pUnit:RegisterEvent('spell1_33572', 1, 1)
end
end

function mob33572_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33572', math.random(1500, 3000), 1)
end

function mob33572_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33572_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33572_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33572, 1, 'mob33572_Action')
RegisterUnitEvent(33572, 2, 'mob33572_Leave')
RegisterUnitEvent(33572, 3, 'mob33572_Kill')
RegisterUnitEvent(33572, 4, 'mob33572_Die')
